﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Reflection;

namespace StockTrader.DAL.Factory.Global
{
    public sealed class StocksInfoFactory
    {
        public static StockTrader.DAL.IDAL.Global.IStocksInfo Create(string path)
        {
            string className = path + ".Global.StocksInfo";
            return (StockTrader.DAL.IDAL.Global.IStocksInfo)Assembly.Load(path).CreateInstance(className);
        }
    }
}
